import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FileInputStreamDemo02 {
    public static void main(String[] args) throws IOException {

        FileInputStream fileInputStream = new FileInputStream("C:\\Users\\Administrator\\Desktop\\1.txt");
//        while (true) {
//            int content = fileInputStream.read();
//            if (content == -1) {
//                break;
//            }
//        }
        int content;
        while ((content = fileInputStream.read()) != -1) {
            System.out.println(content);
        }

        fileInputStream.close();
    }
}
